package edu.fdzc.big_event.anno;

import edu.fdzc.big_event.Validation.StateValidation;
import jakarta.validation.Constraint;
import jakarta.validation.Payload;

import java.lang.annotation.*;
import java.util.List;

@Documented
@Constraint(
        validatedBy = {StateValidation.class}
)
@Target({ ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface State {

    //提供失败的校验规则
    String message() default "{jakarta.validation.constraints.NotEmpty.message}";

    //指定分组
    Class<?>[] groups() default {};

    //负载
    Class<? extends Payload>[] payload() default {};

}
